#
# Copyright (C) 2015 MediaTek Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#

obj-$(CONFIG_MACH_MT6853) += ptp3_v1/
obj-$(CONFIG_MACH_MT6893) += ptp3_v1/
#obj-$(CONFIG_MACH_MT6833) += ptp3_v1/
obj-$(CONFIG_MACH_MT6885) += credit_didt_v1/
obj-$(CONFIG_MACH_MT6873) += credit_didt_v1/
obj-$(CONFIG_MACH_MT6885) += brisket_v1/
obj-$(CONFIG_MACH_MT6873) += brisket_v1/
obj-$(CONFIG_MACH_MT6768) += drcc_v1/
obj-$(CONFIG_MACH_MT6785) += drcc_v1/

obj-$(CONFIG_MTK_CPU_KORO) += koro/
obj-$(CONFIG_MACH_MT6768) += spm/
obj-$(CONFIG_MACH_MT6768) += power_gs_v1/
obj-$(CONFIG_MACH_MT6785) += spm/
obj-$(CONFIG_MACH_MT6785) += power_gs_v1/
obj-$(CONFIG_MACH_MT6765) += spm/
obj-$(CONFIG_MTK_STATIC_POWER) += leakage_table_v2/
obj-$(CONFIG_MTK_CPU_FREQ) += cpufreq_v1/
obj-$(CONFIG_MACH_MT6739) += cpufreq_v2/
obj-$(CONFIG_MACH_MT6768) += dcm_v1/
obj-$(CONFIG_MACH_MT6785) += dcm_v1/
obj-$(CONFIG_MTK_PTPOD) += eem_v2/
obj-$(CONFIG_MTK_PTPOD_GPU) += eemgpu_v2/
obj-$(CONFIG_MTK_CPU_MSSV) += cpumssv_v1/
obj-$(CONFIG_MACH_MT6739) += eem_v2/
obj-$(CONFIG_MACH_MT6771) += eem_v2/
ifeq ($(CONFIG_MTK_UNIFY_POWER), y)
obj-$(CONFIG_MACH_MT6771) += upower_v2/
obj-$(CONFIG_MACH_MT6739) += upower_v2/
obj-$(CONFIG_MACH_MT8168) += upower_v2/
endif
ifneq ($(CONFIG_FPGA_EARLY_PORTING), y)
obj-$(CONFIG_MACH_MT6771) += pbm_v3/
obj-$(CONFIG_MACH_MT6739) += pbm_v3/
obj-$(CONFIG_MACH_MT6785) += pbm_v4/
obj-$(CONFIG_MACH_MT6768) += pbm_v4/
obj-$(CONFIG_MACH_MT6885) += pbm_v4/
obj-$(CONFIG_MACH_MT6893) += pbm_v4/
obj-$(CONFIG_MACH_MT6873) += pbm_v4/
obj-$(CONFIG_MACH_MT6853) += pbm_v4/
obj-$(CONFIG_MACH_MT6768) += mdpm_v1/
obj-$(CONFIG_MACH_MT6785) += mdpm_v2/
obj-$(CONFIG_MACH_MT6885) += mdpm_v2/
obj-$(CONFIG_MACH_MT6893) += mdpm_v2/
obj-$(CONFIG_MACH_MT6873) += mdpm_v2/
obj-$(CONFIG_MACH_MT6853) += mdpm_v2/
obj-$(CONFIG_MACH_MT6885) += power_throttling/
obj-$(CONFIG_MACH_MT6893) += power_throttling/
obj-$(CONFIG_MACH_MT6873) += power_throttling/
obj-$(CONFIG_MACH_MT6853) += power_throttling/
obj-$(CONFIG_MACH_MT6771) += vcorefs_v3/
obj-$(CONFIG_MACH_MT6739) += vcorefs_v3/
obj-$(CONFIG_MACH_MT6771) += cpuidle_v3/
obj-$(CONFIG_MACH_MT6739) += cpuidle_v3/
obj-$(CONFIG_MACH_MT6765) += $(subst ",,$(CONFIG_MTK_PLATFORM))/
obj-$(CONFIG_MACH_MT6771) += $(subst ",,$(CONFIG_MTK_PLATFORM))/
obj-$(CONFIG_MACH_MT6768) += $(subst ",,$(CONFIG_MTK_PLATFORM))/
obj-$(CONFIG_MACH_MT6785) += $(subst ",,$(CONFIG_MTK_PLATFORM))/
obj-$(CONFIG_MACH_MT6768) += clkbuf_v1/
obj-$(CONFIG_MACH_MT6785) += clkbuf_v1/
obj-$(CONFIG_MACH_MT6833) += clkbuf_v1/
obj-$(CONFIG_MACH_MT6853) += clkbuf_v1/
obj-$(CONFIG_MACH_MT6873) += clkbuf_v1/
obj-$(CONFIG_MACH_MT6885) += clkbuf_v1/
obj-$(CONFIG_MACH_MT6893) += clkbuf_v1/
obj-$(CONFIG_MACH_MT8168) += clkbuf_v1/
obj-$(CONFIG_MACH_MT6885) += srclken_rc_v1/
obj-$(CONFIG_MACH_MT6873) += srclken_rc_v1/
obj-$(CONFIG_MACH_MT6853) += srclken_rc_v1/
obj-$(CONFIG_MACH_MT6833) += srclken_rc_v1/
obj-$(CONFIG_MACH_MT6893) += srclken_rc_v1/
obj-$(CONFIG_MACH_MT6739) += $(subst ",,$(CONFIG_MTK_PLATFORM))/
obj-$(CONFIG_MACH_MT8167) += $(subst ",,$(CONFIG_MTK_PLATFORM))/
obj-$(CONFIG_MACH_MT8168) += $(subst ",,$(CONFIG_MTK_PLATFORM))/
obj-$(CONFIG_MACH_MT6739) += power_gs_v1/
obj-$(CONFIG_MACH_MT6771) += power_gs_v1/
obj-$(CONFIG_MACH_MT6885) += power_gs_v1/
obj-$(CONFIG_MACH_MT6893) += power_gs_v1/
obj-$(CONFIG_MACH_MT6873) += power_gs_v1/
obj-$(CONFIG_MACH_MT6853) += power_gs_v1/
obj-$(CONFIG_MACH_MT6833) += power_gs_v1/
obj-$(CONFIG_MACH_MT6885) += gpufreq_v1/
obj-$(CONFIG_MACH_MT6893) += gpufreq_v1/
obj-$(CONFIG_MACH_MT6873) += gpufreq_v1/
endif

obj-$(CONFIG_MACH_MT8167) += hps_v1/
obj-$(CONFIG_MACH_MT6768) += mcdi/
obj-$(CONFIG_MACH_MT6785) += mcdi/
obj-$(CONFIG_MACH_MT6771) += cpuhotplug/
obj-$(CONFIG_MACH_MT6739) += cpuhotplug/
obj-$(CONFIG_MACH_MT6885) += cpuhotplug/
obj-$(CONFIG_MACH_MT6893) += cpuhotplug/
obj-$(CONFIG_MACH_MT6873) += cpuhotplug/
obj-$(CONFIG_MACH_MT6853) += cpuhotplug/
obj-$(CONFIG_MACH_MT6833) += cpuhotplug/
obj-$(CONFIG_MACH_MT6771) += ppm_v3/
obj-$(CONFIG_MACH_MT6739) += ppm_v3/
obj-$(CONFIG_MACH_MT6768) += ppm_v3/
obj-$(CONFIG_MACH_MT6765) += ppm_v3/
obj-$(CONFIG_MACH_MT6768) += cpuhotplug/
obj-$(CONFIG_MACH_MT6768) += cpuidle_v3/
obj-$(CONFIG_MACH_MT6768) += udi_v2/
obj-$(CONFIG_MACH_MT6785) += udi_v2/
obj-$(CONFIG_MACH_MT6885) += udi_v2/
obj-$(CONFIG_MACH_MT6893) += udi_v2/
obj-$(CONFIG_MACH_MT6873) += udi_v2/
obj-$(CONFIG_MACH_MT6785) += cpuhotplug/
obj-$(CONFIG_MACH_MT6885) += ppm_v3/
obj-$(CONFIG_MACH_MT6893) += ppm_v3/
obj-$(CONFIG_MACH_MT6873) += ppm_v3/
obj-$(CONFIG_MACH_MT6853) += ppm_v3/
obj-$(CONFIG_MACH_MT6833) += ppm_v3/
obj-$(CONFIG_MACH_MT6771) += spm_v4/
obj-$(CONFIG_MACH_MT6739) += spm_v4/
obj-$(CONFIG_MACH_MT6771) += clkbuf_v1/
obj-$(CONFIG_MACH_MT6739) += clkbuf_v1/
obj-$(CONFIG_MACH_MT6765) += clkbuf_v1/
obj-$(CONFIG_MACH_MT6739) += dcm_v1/
obj-$(CONFIG_MACH_MT6885) += dcm_v1/
obj-$(CONFIG_MACH_MT6893) += dcm_v1/
obj-$(CONFIG_MACH_MT6873) += dcm_v1/
obj-$(CONFIG_MACH_MT6853) += dcm_v1/
obj-$(CONFIG_MACH_MT6765) += dcm_v1/
obj-$(CONFIG_MACH_MT8168) += dcm_v1/
obj-$(CONFIG_MACH_MT6833) += dcm_v1/
obj-$(CONFIG_MACH_MT6771) += mcdi/
obj-$(CONFIG_MACH_MT6739) += mcdi/
obj-$(CONFIG_MACH_MT6785) += cpuidle_v3/
obj-$(CONFIG_MACH_MT6785) += ppm_v3/
obj-$(CONFIG_MTK_SLBC) += slbc/
obj-$(CONFIG_MTK_SWPM) += swpm_v1/
obj-$(CONFIG_MTK_QOS_V2) += qos/
obj-$(CONFIG_MTK_CM_MGR) += cm_mgr_v1/
ifeq ($(CONFIG_MTK_UNIFY_POWER), y)
obj-$(CONFIG_MTK_UNIFY_POWER) += upower_v2/
obj-$(CONFIG_MACH_MT6765) += pbm_v4/
#obj-$(CONFIG_MACH_MT6765) += hps_v3/
obj-$(CONFIG_MACH_MT6765) += mdpm_v1/
obj-$(CONFIG_MACH_MT6765) += cpuidle_v3/
obj-$(CONFIG_MACH_MT6765) += power_gs_v1/
obj-$(CONFIG_MACH_MT6765) += udi_v1/
obj-$(CONFIG_MACH_MT6765) += mcdi/
endif
obj-y += dvfsrc/
ifeq ($(CONFIG_MTK_GPU_SUPPORT), y)
obj-$(CONFIG_MACH_MT6853) += gpufreq_v1/
obj-$(CONFIG_MACH_MT6833) += gpufreq_v1/
endif
